package com.heima.UserService.Login;

import com.heima.UserService.LoginService;
import com.heima.mapper.UserMapper;
import com.heima.pojo.User;
import com.heima.util.MybatisUtils;
import org.apache.ibatis.session.SqlSession;

public class Lservice implements LoginService {
    @Override
    public User getUser(String username, String password) {
        SqlSession session= MybatisUtils.getSqlSession();
        UserMapper mapper = session.getMapper(UserMapper.class);
        User user = mapper.getUser(username,password);
        return user;
    }
}
